From 9d0569006f5baf72b4bbc87af2ca29e5d4f4e7d0 Mon Sep 17 00:00:00 2001 From: "awilliam@xenbuild.aw" Date: Tue, 8 Aug 2006 14:38:10 -0600 Subject: [PATCH] [IA64] bug fix in ioports_deny_access Signed-off-by: Tristan Gingold --- xen/arch/ia64/xen/mm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/ia64/xen/mm.c b/xen/arch/ia64/xen/mm.c index a31a054c4f..35e299c951 100644 --- a/xen/arch/ia64/xen/mm.c +++ b/xen/arch/ia64/xen/mm.c @@ -881,10 +881,10 @@ ioports_deny_access(struct domain *d, unsigned long fp, unsigned long lp) pte_t old_pte; port = IO_SPACE_SPARSE_DECODING (off); - if (port < fp || port + IO_SPACE_SPARSE_PORTS_PER_PAGE > lp) { + if (port < fp || port + IO_SPACE_SPARSE_PORTS_PER_PAGE - 1 > lp) { /* Maybe this covers an allowed port. */ if (ioports_has_allowed(d, port, - port + IO_SPACE_SPARSE_PORTS_PER_PAGE)) + port + IO_SPACE_SPARSE_PORTS_PER_PAGE - 1)) continue; } -- 2.30.2